package org.KeyCrafter.cmd;

import org.KeyCrafter.server.session.ClientSession;

@CmdSet
public interface ListCommand {
    @CmdInfo(name = "lpush", arity = -3, sflags = "wm", firstKey = 1, lastKey = 1, keyStep = 1)
    void lpushCommand(ClientSession c);
    @CmdInfo(name = "lpop", arity = 2, sflags = "w", firstKey = 1, lastKey = 1, keyStep = 1)
    void lpopCommand(ClientSession c);
    @CmdInfo(name = "llen", arity = 2, sflags = "r", firstKey = 1, lastKey = 1, keyStep = 1)
    void llenCommand(ClientSession c);
    @CmdInfo(name = "rpush", arity = -3, sflags = "wm", firstKey = 1, lastKey = 1, keyStep = 1)
    void rpushCommand(ClientSession c);
    @CmdInfo(name = "lrange", arity = 4, sflags = "r", firstKey = 1, lastKey = 1, keyStep = 1)
    void lrangeCommand(ClientSession c);
}
